<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue3 你好世界</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <my-book></my-book>
        <my-book></my-book>
    </div>

    <script>
        const book = {
            template:`
            <div>我是组件</div>
            `
        };
        const Counter = {
            data(){
                return{
                    msg:"你好世界",
                    count:0
                }
            },
            components:{
                "my-book":book,
            }
        }
        
        Vue.createApp(Counter).mount('#app');
    </script>
</body>
</html>